add thread pool in server