fix linking for mapreduce + iterative refinement