debugging file reading