add guard and its settings