generating csvs in temp location
Fixing issue where indices were not being found