new thrad pool plugin structure