added savevmdef script