updates to generate node.pp file correctly