removed testing and fixed mailer class