added printout of exception on file reading