make addQueryStringToUrl public