update url tool to use subcommands