ldm merge