gen-simulated script