update from master

Обработка direct_term