moves the get url functions to the data for global usage