add history to refs