renamed export_class_name to rule