the invention provides compounds of formula and pharmaceutically acceptable salts thereof , wherein ya , yb , r1 , r2 , and g are as described in the specification , as well as compositions comprising a compound of formula . the compounds are useful as inhibitors of bacterial rna polymerase and as antibacterial agents .