add get_class to baseclass