added ability to change the number of nodes to deploy