redo of all the merge scripts. just need to test.