add automatic differentiation between bc and pml cluster