added support for node attributes