Problem: was not setting chunks in sendXxx calls

Solution: set chunks correctly on sending
Whitespace fixes