fix up the url path stuff