verify that classname is the right one