added some email templating