made pluginpath a parameter