improve tty searching