actually logging error via email (ugh)