update serialize: read/write