changed the refreshScript