added compress supporting