added compression capability