addded thread pools, commented pause/resume code