port change for map and reduce