deprecate old pool implementation.

MapReduce is called when Pool is created.

fixed a few bugs in MapReduce