simpler security mode check