bugfix for pty disabling
logging commands