started writing csv files