More work on scan. The search.egw script takes care of cached