use NodeRenderer as a proper type class