replace whitelisted and blacklisted with state