fix for archive/unarchive