change group factory to use sequence for identifier