change class_option schema to method_option