updating socket handler