loop get_classname_by_path