added security check control for jailbreak and debugger detection
updated for merge