fsm now working
working on new methods for fsm