add script for map reduce