adding something to support compression before encryption