changed to anonymous callback for mailer