initial work for email templates