adding in some more logic to handle configuration of multiple nodes