improved debugging of email