debugging read errors