update ref file