dihedral alignment and workaround extra library inconsistency