adding stock publish functions form pubnub source