rewrite of CSVFile