minor code refinement (cli)