add some private API to get the class struct