fix zip file handling
fix email script so that it works