update to factory template to allow a node to be passed through