update object serialization, remove debug messages