adding ability to generate email context