do nodes before links (still unstable...)