refactor to generate minutes.csv also