adding more serialization methods