update pubnub reference