remove last isSecurityEnabled check