add compression and cleanu