split into class_methods and instance_methods