account for possible query strings in our dispatch method