fix transport: codec improvement