modified Serengeti data merging script