fixed bug where loadFile() wasn't calling callback