fixes calls to file