update api, compressLevel is added