added option for email notifications