consolidated simulator and generator implementations