tweaks to plugin loader