initial version for websocket stuff