customizing a socket