map/partition/reduce appears to be done, just needs debugging.