fix: search engine loading and resource management