fixes references to files