modify socket command