update basic functionality for sockets