working out zipping data payload for upload