support reading fragmented messages.
fix ref bug + re-introduce lost feature to set group field.
update samples