fixes for plugin loader