cleaner way to pass the groupManager