updated refine sh