added allowNotFound to require