changed publish handler init