add compareSessionStates