improve interface for whitelist and blacklist management