quick and ugly pass at export_to_csv