fix stuff with callbacks, search now works