streamlined loadFile()