endOfFrame added to manager, some dealloc things