fix up trace api, fix scenemanager holding onto objects that have been deleted