update to use csv output format