initial code for compress support