workaround for error in get_classes