prepare to switch to websocket