fine tune csv and json output