added makeUrl and request functions, need to be written