many fixes to throughput script