more complete logic for socket proxy, just incoming yet