constructing query urls works