change sender to use argparse