fully baked deflate and b64