script refine.