corrected gzip, removed mutex