added search subcommand