added nodelist generation and output