add error mailer when there is a problem