added ability to change # of threads allocated per source when using pool framework