extended API to support multiple-groups creation