switched to Os
made provisioning code more robust