move addToAll to open()