add config for recursive scan

add config for recursive scan