added more mailer stuff. not sure what it does