support offline compressing