switched to argparse for command line arguments