few fixes for publish