rearrange DM configuration