refine shell