added logging statements to measure buffer reads