unzipping, base64 decoding and unencrypting of metadata