this is my attempt to get out of the state machine

it doesn't work yet