updated file loading