Disclosed are carboxamide compounds as well as pharmaceutical compositions and methods of use. One embodiment is a compound having the structurein which R1, R2, R3, R4, T, p, q, w and x are as described herein. In certain embodiments, a compound disclosed herein activates the AMPK pathway, and can be used to treat metabolism-related disorders and conditions.