update refs to exclude unwanted fields