moving thread pool config outside