revamped logic to use separate CSV files for each team.