improve logic, now sends publishreponse but for some reasons they are still ignored by client