added better error handling.  error messages are now emailed to superadmins