added possibility to add groupIDs to groups, where it is missing