added email-based error reporting