cleanup vm.cc