fixing whitelist/blacklist logic for multiple paths