updated bug in pluginfile logic