fixing file loading