updated publish.rb with 'private' publication state