directly use query string instead of tree