updating GetNode and ToJson scripts