improve performance of command line