map-reduce init