Fixes#16

Commit fixes#16
output compression now works flawlessly, combo compression+cache is
also ok.