returns zip tmp file
simplified and moved logic to payload