remove unneeded references to files