fix archive order, add 2 more code inputs