working on the emailing stuff