return length as well on write
1.1.0