command line handling draft