add uriOrDie utility