search correct directory