#364 problem reproduced
fixes #364 by changing the archive() function