get_classes workaround