separated arc_to_csv and dump_to_csv
tidy dev code