publish/prepublish fix