updated StateManager