add input command line handling