fix some typos and logic issues in storer and archiver