command line input impl 2