improve provisioning script