moved StateManager to a separate repo