stub for sockets