added argparse and ProgressBar support