improve stability of read and write