made thread pool size configurable