A method for preparing a compound of formula II-a:or a pharmaceutical acceptable salt thereof, whereinCy is an optionally substituted 5-6 membered saturated, partially unsaturated, or aromatic ring having 1-3 heteroatoms independently selected from nitrogen, oxygen, or sulfurCy2 is an optionally substituted 5-10 membered saturated, partially unsaturated, or aromatic monocyclic or bicyclic ring having 0-4 heteroatoms, independently selected from nitrogen, oxygen, or sulfur each of Rx and Ry is independently selected from -R2, -halo, -N02, -CN, -OR2, -SR2, -N(R2)2, -C(0)R2, -C02R2, -C(0)C(0)R2, -C(0)CH2C(0)R\ -S(0)R2, -S(0)2R2, - C(0)N(R2)2, -S02N(R2)2, -OC(0)R2, -N(R2)C(0)R2, -N(R2)N(R2)2, N(R2)-C(=NR2)N(R2)2s -C(=NR2)NQi2)2, -C=NOR2, - N(R2)C(0)N(R2)2, -N(R2)S02N(R2)2, -N(R2)S02R2, or - 0 C ( 0 ) N ( R \ each R2 is independently hydrogen or an optionally substituted group selected from C\ aliphatic, a C-io monocyclic or bicyclic aryl ring, or a 5-10 membered saturated, partially unsaturated, or aromatic monocyclic or bicyclic ring having 1-4 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or two R2 on the same nitrogen are taken together with the nitrogen to form an optionally substituted 5-8 membered saturated, partially unsaturated, or aromatic ring having 14 heteroatoms independently selected from nitrogen, oxygen, or sulfur, comprising the step of coupling a compound of formula Il-vi/i:with a compound of formula II-v//: