moved the url call out of the config var