initial commit of rewrite of archive code-nothing works