small improvements, variable blockSize