here's some search functionality added in, could use a bit of cleanup