make socket work