beginning to add some websocket support