regen with events fix and  other stuff