added switch for setting group from create