ios provisioning profile changed + some code corrections