implement search functionality (crude)