add autostoptrainer and trainning scheduler to stop trainning