move `search` command into module