document maxDepth option