removed debug, and made additional fix to email notifications