renderer rewritten, partials implemented