moved statemachine to lib and started tc_statemachine