new method writeCSV is now available