change loading method for files.