prepare to add websocket