updated refresh script