generify: initial implementation of SavePkgs and SaveFiles