fix non-tty usage
1.3.1