add NUM_THREADS to init scripts