csv_export: better implementation