deal with query string