updated to set default group id after creation