refactoring of renderers, plots for cleaner external API and internal code.