initial work for fsm
Merge branch 'fsm'
full simulaiton without wpi