send email on action; various fixes