added terminal integration