allow reference uri to be empty or nil