adding restore as global setting at pubnub object level