determine node role when adding new node