refine zip.cpp