added safeguard for directory that do not require exploration