added debug emails.