added basic command line processing