auto merge nodes when linked