generate csv reports on fly