Fixed some names, and resolved `publish` functions on server