break masked pkgs scanning loop when we encounter a match