refactor vm management & first step websocket example