Merge pull request #358 from kanoi/api api use a dynamic io buffer, truncated before it reaches the current ~64...