update file loading method