first implementation mapreduce scripts