fixed api changes for being able to use closure search