boilerplate for zip stream