bunch of small stuffs
add ability to run threadpool in invoked mode, where it acts more like a task queue.