add debugging printing for nodes