added automated error reporting