fixed provisioning bugs