Adaptation a la derniere version du TEngine