support for :clear and example switching.