logging added to filereader.rb