add support for passing query parameters via resource.query