update dependencies
ensureNode is the generic utility