fixes to publish