add some optimization passes

also includes fine tuning of several output powers