set up structure for composing the url