addFlagsSecure