finish optimized file loading