make local search actually work as intended