more tty code moves