add possibility to define alternate prime group