modify threadpool logic
add maven support