began archive generation code