add a check
begin to write a compressing sink