only check for whitelistClass after target type checks