changed the naming of temporary files and made them gzip compressed by default