stop using deprecated message attribute