clean up PluginError and document