add in old gallery native archive code
Merge branch 'local'