changes for socket