why not just check the query string here instead of passing it through?