fixes to get this thing working. there is still a renderer problem