Revert "changed publish handler init"

This reverts commit 8c206c07f32765a110650a75a20e62a987faf9af.