new simulation with state machine