fixes to making vm's