refactor pluggable.initializePlugins