adds ability to search from command line