extract vm creation methods from vm