moved logging functionality up to groupsAndMembers