error reporting added back