is_class and resolve_class