add support for query strings to withRequest