add terminal classes