tidy up interface to compression module