improve cmd search