improve UFS checker heuristics