Add message handling deeper into publish API’s