replaced the dumb way I was building the URL with a better way