updated documentation for publish