enforce that references and names are not NULL