add uploadarchives code