small fixes to publish