fixed file loading