small changes in logic for creating usergroups