adding some websocket stuff