fixed: support for isSecure