a couple of bugfixes in the new readv logic