fixed argparse and added uri argument