change mode form compress/decompress to client/server