edited command line logic.