added socat stuff