finally got searching working