move provisioning out of shell scripts