add more STDERR output for merge function.