moved writer to renderer
moved writer to renderer
render factored out of node