add null checks
refactor render code. functional but not done
more work on rendering classes and some code cleanup