added --csv flag