Removed local unused urlPrefix handling. We should figure out a better cleaner approach for this.
Improved error handling in parser