update serialization api