more updates to node script