refactoring pluginxml