A compound according to Formula or a pharmaceutically acceptable salt thereof: wherein: is a 9-membered bicyclic heteroaryl ring; X, Y, and Z are selected from =C(R 11)- and =N-, wherein at least two of X, Y, and Z are =C(R 11)-; R 1 and R 2 are independently selected from H and optionally substituted alkyl; or R 1 and R 2, together with the nitrogen to which they are attached, form an optionally substituted 3-, 4-, 5- or 6-membered heterocycloalkyl ring; R 3 is -N C OR 5, -OC NR 6 R 7, -N C NR 6 R 7, or -N C R 8; each R 4 is independently selected from halogen, -CN, -OR 9, -SR 9, -N(R 10) 2, -S R 9, - S 2 R 9, -NHS 2 R 9, -S 2 N(R 10) 2, -C R 9, -C OR 9, -OC R 9, -C N(R 10) 2, -OC N(R 10) 2, -NR 10 C N(R 10) 2, -NR 10 C R 9, -NR 10 C OR 9, optionally substituted alkyl, optionally substituted alkenyl, optionally substituted alkynyl, optionally substituted cycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; R 5 is selected from optionally substituted alkyl, optionally substituted heterocycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; R 6 and R 7 are independently selected from H and optionally substituted alkyl; or R 6 and R 7, together with the nitrogen to which they are attached, form an optionally substituted 5- or 6-membered heterocycloalkyl ring; R 8 is selected from optionally substituted alkyl, optionally substituted cycloalkyl, optionally substituted phenyl, optionally substituted heterocycloalkyl, and optionally substituted heteroaryl; each R 9 is independently selected from optionally substituted alkyl, optionally substituted cycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; each R 10 is independently selected from H, optionally substituted alkyl, optionally substituted cycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; each R 11 is independently selected from H, halogen, and optionally substituted alkyl; n is 0, 1, 2, 3, or 4; and p is 0, 1, or 2. is a 9-membered bicyclic heteroaryl ring; X, Y, and Z are selected from =C(R 11)- and =N-, wherein at least two of X, Y, and Z are =C(R 11)-; R 1 and R 2 are independently selected from H and optionally substituted alkyl; or R 1 and R 2, together with the nitrogen to which they are attached, form an optionally substituted 3-, 4-, 5- or 6-membered heterocycloalkyl ring; R 3 is -N C OR 5, -OC NR 6 R 7, -N C NR 6 R 7, or -N C R 8; each R 4 is independently selected from halogen, -CN, -OR 9, -SR 9, -N(R 10) 2, -S R 9, - S 2 R 9, -NHS 2 R 9, -S 2 N(R 10) 2, -C R 9, -C OR 9, -OC R 9, -C N(R 10) 2, -OC N(R 10) 2, -NR 10 C N(R 10) 2, -NR 10 C R 9, -NR 10 C OR 9, optionally substituted alkyl, optionally substituted alkenyl, optionally substituted alkynyl, optionally substituted cycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; R 5 is selected from optionally substituted alkyl, optionally substituted heterocycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; R 6 and R 7 are independently selected from H and optionally substituted alkyl; or R 6 and R 7, together with the nitrogen to which they are attached, form an optionally substituted 5- or 6-membered heterocycloalkyl ring; R 8 is selected from optionally substituted alkyl, optionally substituted cycloalkyl, optionally substituted phenyl, optionally substituted heterocycloalkyl, and optionally substituted heteroaryl; each R 9 is independently selected from optionally substituted alkyl, optionally substituted cycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; each R 10 is independently selected from H, optionally substituted alkyl, optionally substituted cycloalkyl, optionally substituted phenyl, and optionally substituted heteroaryl; each R 11 is independently selected from H, halogen, and optionally substituted alkyl; n is 0, 1, 2, 3, or 4; and p is 0, 1, or 2.