updated to functioning in node over p2p and http (internally and externally)