update some of the refresh code