add debug info for merge