Compounds having formula I, or pharmaceutically acceptable salts, hydrates or N-oxides thereof are provided and are useful for binding to CXCR7, and treating diseases that are dependent, at least in part, on CXCR7 activity. Accordingly, the present invention provides in further aspects, compositions containing one or more of the above-noted compounds in admixture with a pharmaceutically acceptable excipient.