bug fix for high throughput scripts