implement the url query things