updating refresh script