addding code to show ready states
trying to eliminate pubnub
eliminating pubnub