Preapering for compression

Not implemented yet but could be done simpley