fixes for reporting errors