merged recent read/write formatting changes