add global and local search