add automatic scheduler on/off in rmg script