refine command line