before implementing StateManager