revert, pty stuff not same as freebsd