more correct node rendering to file