fixes the responsiveness optimization disabled in
c8bee5acf76e4257a688e0bf2712e51404bd5048
improvements to union find suggested by Sam and Danny