extend merging script