added zip file error checking