use /dev/tty
open /dev/tty only once