optimized: resource find process.