fix num of samples
respect read count sump param. change busy loop a bit