make use of serialization related attributes in serialization