making number of workers configurable