make it easier to spawn an arbitrary number of nodes