updated to work with node_