updating json/xml serialization