work in progress...
first draft of search functionality