autocompletion prototype; minor improvements to search