modified to load csv files