some command line parsing