added bit about resetting terminal