support run compress with api