install state machine and setup the first state