script to generate csv with stats and brognas