introduce "mode" flag for rules (strict or weak)