graphics/websocket stuff