add some command line option handling