added terminal debug display