change handling of thread pool size.