unpack_s3 complete, partially tested.