make sure the nid is always considered a string