fix refresh script to via file