added flag to mailer