add an option to turn off search if desired