general zip file creation function

utility functions