changing various loadFile to loadResource