add a check for local node to the join command