currStateManager changed to global