run script to generate second stage merged files. this will change when second stage merging changes