update the plugin code