[DEV] add plugin and rewrite to support the plugin