serverside publishing should be done

clientside still needs to be fixed