The disclosure relates to modulators of ATP-Binding Cassette ("ABC") transporters or fragments thereof, including Cystic Fibrosis Transmembrane Conductance Regulator (CFTR), compositions thereof, and methods therewith. The disclosure particularly thieno-pyridine derivatives of represented by formula (I) or formula (II) and pharmaceutically acceptable salts thereof, wherein the variables are as defined in the specification.