modify socket content