changed the way nextuser handles groups