more work on scene tree generation