improved error reporting in network