change maxdepth
new search api