some opt tests
huge perfroamnce enhancements, really just replacing shitty code, and updating a lot of the search functions to use the new search model