improve error reporting in receiver