fix and enhance the example plug-ins