some socket changes