change nextStep extend method

from <pathPattern, pathSet> to dfs(pivot)