The present invention relates to heterocyclic derivatives of formula I useful as inhibitors of ion channels. The invention also provides pharmaceutically acceptable compositions comprising the compounds of the invention and methods of using the compositions in the treatment of various disorders, like, e.g. pain., (I) or a pharmaceutically acceptable salt thereof, wherein, independently for each occurrence: ring Z is a thiazole or thiadiazole optionally substituted with 0-2 occurrences of R V is CH2, NH, O, or S and R, R1, R2, and R3 are hydrogen, C1-C6 aliphatic, aryl, C3-C8 cycloaliphatic, halo, CN, NO2, CF3, OCF3, OH, NH2, NH(C1-C6 aliphatic), N(C1-C6 aliphatic) 2, COOH, COO(C1 -C6 aliphatic), O(C1-C6 aliphatic), CHF2, or CH2F.La présente invention concerne des dérivés hétérocycliques utiles comme inhibiteurs des canaux ioniques. Linvention concerne également des compositions pharmaceutiquement acceptables comprenant lesdits composés ainsi que des méthodes dutilisation de ces compositions dans le traitement de troubles divers.