New merge cds is deriv

This is a PR on top of Chetna's PR to make the reviewing easy.