modify socket connection