print class name for objects if available