added mailer and alarm handler