add get max depth
add csv method