more improvement to scripts. there would be a placeholder in nodes.json at id=9999; remove this if you want