before switching to do the mailer functionality