add support for partial message (fix #3)
Merge branch 'partial-message'