add compress interface