add: fix purpose handling
archive: first stirrings of code