made Map work for distributed worker.