added terminal restart