added nested group support to the Group API