more sane handling of command line arguments