added max preempt setting to init