merged emitStates and stateListeners