adding option to include node for each require in a nodes array