change API to document.continue and fix issue with publishes failing