add state manager