adopt search to cfg