updated serialization scripts