improve plugin_demo