made statemachine subject available outside the statemachine