changed the mechanism of vm provisioning