basic global search implementation