add pubnub dependency