add object serialization option