update entry on read/write