depends on #71 - [ ] implement monoid instance native node, tree etc. - [ ] change statefull mainloop to tailrec foldl of state, msg
depends on #71