added error reporting via email