added basic websocket support