add config for recursive scan