refactoring pubnub.* ds methods