more stuff added for socket