add SecureMode class