renamed getOpenStates to getActiveStates