email and template updates