support to reduce number of threads in tasking system, still not working properly