The present invention relates to a compound of formula (I):
or a pharmaceutically acceptable salt thereof, wherein R
1
-R
4
, Q, Z, r, and p are as defined herein. Compounds of the present invention are useful in the treatment of diseases associated with FAK overexpression, including proliferative diseases.