refactor compression
test compression
update existing tests