added compressionLevel setting