catch some errors in the url parse