better initialization for publishing