many changes. one is adding merge_local_contig