add more error checking for the insert URI (via TheSeeker)