implemented merge_runs, dont know if it works.