update ref's