fixes to provisioning process