added classdefs from previous sglib/objects branch