add check for list of nameIds in names publish functions