that's a good idea.  Can you not access node attributes in a resource ?