fixed for map reduce of hosts