add endless cycle check to defaulty confing.