network checks sockets code
network checks added