mix call/publish in one program