try to reign in the vector<ptr> madness