for case if $class is at top root (i.e. no back-slashes), use $class as $model.