add global state, management