implement compression on top of v0.7.8