implemented search feature courtesy of the messiah matt