added jailbreak detection