speedup parts of finder scripts