D
dynamic state machine