cleanup
parse command line options