mod to use subcommand