started adding websocket communication