handle command line options