added sockets and update wnpc