add compress out feature, buggy