publish: several basic calls wrapped in streams

generated from commit 4f44aae6e62c0709e537ef4c0bcd92989d883588