The present application describes modulators of MIP-1 of formula (I): or stereoisomers or pharmaceutically acceptable salts thereof, wherein m, Q, T, W, Z, R1, R3, R4, R5, R5a and R5b, are as set forth above. In addition, methods of treating and preventing inflammatory diseases such as asthma and allergic diseases, as well as autoimmune pathologies such as rheumatoid arthritis and atherosclerosis using the modulators are disclosed.