add object serialization