making combined reading and writing a bit more stable