cleanup and pluginData