merge whitelist and blacklist filtering