remove all references to the packfile