added reading of query strings