tweaked read_buffer error messages