add terminal directive