improvements to inputsearch