refine commands