remove some old code
Decrease thread pool size so it uses less memory