* feat: init refactor * feat: add helper code * fix: missing file + test * fix: just state/publish api