added ability to generate querystring from multiple bags