Plugins loading bugfix; PluginsAPI enhancement