taking setting command out of initialize block due to calling node attributes.