export to proper CSV files