starting to encapsulate rendering even more intelligently