format code
snappy protocol & async