adding the required cross-check for folders