added sendCompressed method