isolated render functionality to renderer module