Rather than starting with modafinil, melatonin should probably be the first step. It might help, and people do not report tolerance after prolonged use the way they do for modafinil.
Whoa, melatonin makes you dream? Sounds interesting. I can count on one hand the number of dreams I'm aware of having over the past 10 years.