made # worker threads configurable