fixing several bugs in the read methods