fixing file requires