update according generic reader/writer