using logging and argparse