first pass at command line front-end