reworked build tree for shoving in different renderers. could do with some work though.