scripts for selfmerge, bignodemerge