added debug statements for email bug