provisioning fix, and added analytics