next step is to thread distributeMapTasks

I may have to add another function is the chain