minor modifications for data source csv