add email to error logging