don't blow up if stdin is not a tty