fix for #60 - read all the bytes