debugging merging script