add support for setting thread pool workers