switch to argparse
much more elegant parsing