plugindir is not defined here