wip
implement basic publish flow