everything working except need to get attributes for csv files from somewhere