adding support for email reporting