added chain search.