refactor to analyze zip files