updates to fix publish errors