made a few small changes to get api zip request to work