added stats socket for node management and other bits to template