add random wait to zip query and handle zips with no data