added basic monitoring support for sockets