in case uri and script name don't match we better throw an exception