fixed the semantics and logging for whitelists and blacklists