add class_methods support