Custom handlers support for whitelist and blacklist