renamed function get_class_name to get_canonical_name