adjusted to work with statemachine