add dests function, precompute disambiguation moves