add payload length parse when send