add an optimize rule; use quiet compile messages