should fix up pubnub session management