still debugging dihedral derivs