changed all thread scheduling to dynamic