implement unzip middleware