The invention provides methods and pharmaceutical compositions for treating certain cancers with compounds of formula (I) wherein A, B, W, Y, Z, and R1 have any of the meanings defined in the specification and their pharmaceutically acceptable salts and prodrugs.