use class_attribute for backwards compatibility