statemachine for UMS