auto set scheduler at startup