removing old websocket code