trying to build pluginfile function to work