working with error reporting