draft code for node links and rings