handle unzip failure
refactoring with the latest ambit updates