updated csv util to return slice instead of chan