command line input impl