adding socat script for pty