add no-tty and use the proper read