added ability to complete command line and then take in a new command line