some changes to use provisioning profile