fix: thread pool is now final
refactoring, parameterizing config