add code to fetch group stats