update history and add shrinkwrap