add some email debugging code
fix bug caused by 1.9.4's changing of the getUser and getStaff methods